from chat.model.Action import Action

from ActionTalk import ActionTalk

class ActionSelfTalk(ActionTalk):
    _action_token = 'selftalk'
    
    def _log_action(self, user, target, data):
        action = Action()
        action.action = 'SELFTALK'
        action.username = user.username
        action.username_id = user.identity_id
        action.target = target
        action.data = data
        action.save()